home *** CD-ROM | disk | FTP | other *** search
/ Freaks Macintosh Archive / Freaks Macintosh Archive.bin / Freaks Macintosh Archives / Macintosh / ResEdit3.0.sit / ResEdit™ 3.0 / Plugins / hiobPlugin.rsrc / VDL_128_Resource.hiob < prev   
Text File  |  1996-04-23  |  16KB  |  530 lines

  1.  
  2.  
  3. // ---------------------------------------------------------------------
  4. // HIImageRef
  5. // ---------------------------------------------------------------------
  6. DeclareNamedStatement ("ImageRef")
  7.     Margin (5, 5, 5, 5)
  8.     VList 
  9.         {
  10.         IntegerPopup ("Image Type", 80, HIImage_imageType_data)
  11.             {
  12.             IntItem ("No Image", 'none');
  13.             IntItem ("Text", 'txto');
  14.             IntItem ("Icon", 'icon');
  15.             IntItem ("Picture", 'pict');
  16.             IntItem ("Composite", 'comp');
  17.             IntItem ("Pattern", 'ppat');
  18.             };
  19.             
  20.         Spacer (Height = 3);
  21.         Switch (HIImage_imageType_data)
  22.             {
  23.             case 'none':
  24.                 Spacer (Width = 2);
  25.                             
  26.             case 'txto':
  27.                 EditText (HIImage_textResourceID_data, Label = "Text Resource ID:"); 
  28.             
  29.             case 'icon':
  30.                 VList ()
  31.                 {
  32.                     EditText (HIImage_iconSuiteID_data, Label = "Icon Suite Resource ID:"); 
  33.     
  34.                     // Icon Selector    
  35.                     Spacer (Height = 5);
  36.                     IntegerPopup ("Icon Selector", 100, HIImage_iconSelector_data)
  37.                     {
  38.                         IntItem ("Large 1 Bit",        0x00000001);
  39.                         IntItem ("Large 4 Bit",         0x00000002);
  40.                         IntItem ("Large 8 Bit",     0x00000004);
  41.                         IntItem ("---", -666);
  42.                         IntItem ("Small 1 Bit",     0x00000100);
  43.                         IntItem ("Small 4 Bit",     0x00000200);
  44.                         IntItem ("Small 8 Bit",     0x00000400);
  45.                         IntItem ("---", -666);
  46.                         IntItem ("Mini 1 Bit",         0x00010000);
  47.                         IntItem ("Mini 4 Bit",         0x00020000);
  48.                         IntItem ("Mini 8 Bit",         0x00040000);
  49.                         IntItem ("---", -666);
  50.                         IntItem ("All Large Data", 0x000000FF);
  51.                         IntItem ("All Small Data", 0x0000FF00); 
  52.                         IntItem ("All Mini Data",     0x00FF0000); 
  53.                         IntItem ("---", -666);
  54.                         IntItem ("All 1 Bit Data", 0x00010101);
  55.                         IntItem ("All 4 Bit Data", 0x00020202);
  56.                         IntItem ("All 8 Bit Data", 0x00040404);
  57.                         IntItem ("---", -666);
  58.                         IntItem ("All Available Data", 0xFFFFFFFF);
  59.                     };
  60.                 }
  61.             
  62.             case 'pict':
  63.                 EditText (HIImage_pictureResourceID_data, Label = "Picture Resource ID:");
  64.             
  65.             case 'comp':
  66.                 StaticText ("Composite titles currently unsupported.");
  67.  
  68.             case 'ppat':
  69.                 StaticText ("Pattern titles currently unsupported.");
  70.             }
  71.         }
  72.  
  73. // ---------------------------------------------------------------------
  74. // HIObject
  75. // ---------------------------------------------------------------------
  76. DeclareNamedStatement ("HIObject")
  77.     Margin (5, 5, 5, 5)
  78.     VList
  79.         {
  80.         Label ("RefLabel", Single) 
  81.             Margin (2, 2, 2, 2)
  82.             VList
  83.                 {
  84.                 EditText (HIObject_refLabel_creator, Label = "Creator:", LabelAlignment = right, LabelWidth = 60);
  85.                 Spacer (Height = 2);
  86.                 EditText (HIObject_refLabel_id, Label = "ID:", LabelAlignment = right, LabelWidth = 60);
  87.                 }
  88.  
  89.         Label ("Title", Single)
  90.             IncludeNamedStatement ("ImageRef");
  91.         
  92.         Label ("Bounds", Single)
  93.             Margin (2, 2, 2, 2)
  94.             VList
  95.                 {
  96.                 HList
  97.                     {
  98.                     EditText (HIObject_bounds_top, Label = "Top: ", LabelAlignment = right, LabelWidth = 40);
  99.                     Spacer (Width = 10);
  100.                     EditText (HIObject_bounds_left, Label = "Left: ", LabelAlignment = right, LabelWidth = 40);
  101.                     }
  102.                 Spacer (Height = 2);
  103.                 HList
  104.                     {
  105.                     EditText (HIObject_bounds_bottom, Label = "Bottom: ", LabelAlignment = right, LabelWidth = 40);
  106.                     Spacer (Width = 10);
  107.                     EditText (HIObject_bounds_right, Label = "Right: ", LabelAlignment = right, LabelWidth = 40);
  108.                     }
  109.                 }
  110.             
  111.             Spacer (Height = 5);
  112.             CheckBox ("Enabled", HIObject_enabled_data);
  113.             
  114.             Spacer (Height = 5);
  115.             CheckBox ("Visible", HIObject_visible_data);
  116.  
  117.         }
  118.  
  119. // ---------------------------------------------------------------------
  120. // HIPanel
  121. // ---------------------------------------------------------------------
  122. DeclareNamedStatement ("HIPanel")
  123.     IncludeNamedStatement ("HIObject");
  124.  
  125. // -------------------------------------------------------------------------------------------------
  126. //
  127. // Controls
  128. //
  129. // -------------------------------------------------------------------------------------------------
  130. DeclareNamedStatement ("HIControl")    
  131.     VList
  132.         {
  133.         IncludeNamedStatement ("HIPanel");
  134.             
  135.         Margin (5, 5, 5, 5)
  136.         VList 
  137.             {
  138.             // Control Value
  139.             Spacer (Height = 5);
  140.             EditText (HIControl_value_data, Label = "Value:", LabelAlignment = right, LabelWidth = 60);
  141.             
  142.             // Control Mimimum
  143.             Spacer (Height = 5);
  144.             EditText (HIControl_minimum_data, Label = "Minimum:", LabelAlignment = right, LabelWidth = 60);
  145.             
  146.             // Control Maximum
  147.             Spacer (Height = 5);
  148.             EditText (HIControl_maximum_data, Label = "Maximum:", LabelAlignment = right, LabelWidth = 60);
  149.             }
  150.         }
  151.  
  152. // ---------------------------------------------------------------------
  153. // HIBevelButton
  154. // ---------------------------------------------------------------------
  155. DeclareNamedStatement ("HIBevelButton")
  156.     VList 
  157.         {
  158.         IncludeNamedStatement ("HIPanel"); 
  159.         Margin (5, 5, 5, 5)
  160.             IntegerPopup ("Behavior", 60, HIBevelButton_behavior_data)
  161.                 {
  162.                 IntItem ("Momentary", 0);
  163.                 IntItem ("Toggle", 1);
  164.                 };
  165.         }
  166.                 
  167. // ---------------------------------------------------------------------
  168. // HICheckbox
  169. // ---------------------------------------------------------------------
  170. DeclareNamedStatement ("HICheckbox")
  171.     VList ()
  172.         {
  173.         IncludeNamedStatement ("HIPanel");
  174.         Margin (5, 5, 5, 5)
  175.             CheckBox ("CheckBox Selected", HIControl_value_data);
  176.         }
  177.  
  178. // ---------------------------------------------------------------------
  179. // HIDisclosureTriangle
  180. // ---------------------------------------------------------------------
  181. DeclareNamedStatement ("HIDisclosureTriangle")
  182.     IncludeNamedStatement ("HIPanel"); // doesn't use all of HIControl's data members
  183.  
  184. // ---------------------------------------------------------------------
  185. // HILittleArrows
  186. // ---------------------------------------------------------------------
  187. DeclareNamedStatement ("HILittleArrows")
  188.     VList
  189.         {
  190.             IncludeNamedStatement ("HIControl");
  191.  
  192.             // Arrow Delta
  193.             Margin (5, 5, 5, 5)
  194.                 EditText (HILittleArrows_arrowDelta_data, Label = "Arrow Delta:", LabelAlignment = right, LabelWidth = 60);
  195.         }
  196.  
  197. // ---------------------------------------------------------------------
  198. // HIProgressIndicator
  199. // ---------------------------------------------------------------------
  200. DeclareNamedStatement ("HIProgressIndicator")
  201.     VList
  202.         {
  203.         IncludeNamedStatement ("HIPanel"); // doesn't use all of HIControl's data members
  204.             
  205.         Margin (5, 5, 5, 5)
  206.         VList 
  207.             {
  208.             // Behavior -- is the indicator determinate?
  209.             // kHIDeterminateBehavior        = 0,       -- from HIControlTypes.h -- Progress indicator behavior
  210.             // kHIIndeterminateBehavior    = 1
  211.             IntegerPopup ("Behavior", 60, HIProgressIndicator_behavior_data)
  212.                 {
  213.                 IntItem ("Determinate", 0);
  214.                 IntItem ("Indeterminate", 1);
  215.                 };
  216.             }
  217.         }
  218.  
  219. // ---------------------------------------------------------------------
  220. // HIPushButton
  221. // ---------------------------------------------------------------------
  222. DeclareNamedStatement ("HIPushButton")
  223.     VList
  224.         {
  225.         IncludeNamedStatement ("HIPanel");
  226.             
  227.         Margin (5, 5, 5, 5)
  228.             IntegerPopup ("Button Appearance:", 100, HIPushButton_defaultCancelState_data)
  229.                 {
  230.                 IntItem ("Normal", 0);
  231.                 IntItem ("Default", 1);
  232.                 IntItem ("Cancel", 2);
  233.                 };
  234.         }
  235.  
  236. // ---------------------------------------------------------------------
  237. // HIRadioButton
  238. // ---------------------------------------------------------------------
  239. DeclareNamedStatement ("HIRadioButton")
  240.     IncludeNamedStatement ("HIPanel");
  241.  
  242. // ---------------------------------------------------------------------
  243. // HISlider
  244. // ---------------------------------------------------------------------
  245. DeclareNamedStatement ("HISlider")
  246.     IncludeNamedStatement ("HIControl");
  247.  
  248. // ---------------------------------------------------------------------
  249. // HIScrollbar
  250. // ---------------------------------------------------------------------
  251. DeclareNamedStatement ("HIScrollbar")
  252.     VList
  253.         {
  254.         IncludeNamedStatement ("HIControl");
  255.         
  256.         Margin (5, 5, 5, 5)
  257.         VList 
  258.             {
  259.             // Arrow Delta
  260.             Spacer (Height = 5);
  261.             EditText (HIScrollbar_arrowDelta_data, Label = "Arrow Delta:", LabelAlignment = right, LabelWidth = 60);
  262.             
  263.             // Page Delta 
  264.             Spacer (Height = 5);
  265.             EditText (HIScrollbar_pageDelta_data, Label = "Page Delta:", LabelAlignment = right, LabelWidth = 60);
  266.             }
  267.         }
  268.  
  269. // -------------------------------------------------------------------------------------------------
  270. //
  271. // Static Panels
  272. //
  273. // -------------------------------------------------------------------------------------------------
  274.  
  275. // ---------------------------------------------------------------------
  276. // HICaption
  277. // ---------------------------------------------------------------------
  278. DeclareNamedStatement ("HICaption")
  279.     IncludeNamedStatement ("HIPanel");
  280.         
  281. // ---------------------------------------------------------------------
  282. // HIIcon
  283. // ---------------------------------------------------------------------
  284. DeclareNamedStatement ("HIIcon")
  285.     VList
  286.         {
  287.             IncludeNamedStatement ("HIPanel");
  288.  
  289.             // Icon Transform    
  290.             Spacer (Height = 5);
  291.             IntegerPopup ("Icon Transform", 100, HIIcon_transform_data)
  292.             {
  293.                 IntItem ("None",                    0);
  294.                 IntItem ("Disabled",                1);
  295.                 IntItem ("Offline",                2);
  296.                 IntItem ("Open",                    3);
  297.                 IntItem ("---", -666);
  298.                 IntItem ("Selected",                0x4000);
  299.                 IntItem ("Selected Disabled",    0x4001);
  300.                 IntItem ("Selected Offline",    0x4002);
  301.                 IntItem ("Selected Open",        0x4003);
  302.                 IntItem ("---", -666);
  303.                 IntItem ("Label 1",                 0x100);
  304.                 IntItem ("Label 2",                 0x200);
  305.                 IntItem ("Label 3",                 0x300);
  306.                 IntItem ("Label 4",                 0x400);
  307.                 IntItem ("Label 5",                 0x500);
  308.                 IntItem ("Label 6",                 0x600);
  309.                 IntItem ("Label 7",                0x700);
  310.             };    
  311.  
  312.         }
  313.         
  314. // ---------------------------------------------------------------------
  315. // HIPicture
  316. // ---------------------------------------------------------------------
  317. DeclareNamedStatement ("HIPicture")
  318.     IncludeNamedStatement ("HIPanel");
  319.         
  320. // ---------------------------------------------------------------------
  321. // HIVisualSeparator
  322. // ---------------------------------------------------------------------
  323. DeclareNamedStatement ("HIVisualSeparator")
  324.     VList
  325.         {
  326.         IncludeNamedStatement ("HIPanel");
  327.             
  328.         Margin (5, 5, 5, 5)
  329.             IntegerPopup ("Visual Separator Type:", 110, HIVisualSeparator_separatorType_data)
  330.                 {
  331.                 IntItem ("Primary Group",        0);
  332.                 IntItem ("Secondary Group",    1);
  333.                 IntItem ("Horizontal",            2);
  334.                 IntItem ("Vertical",                3);
  335.                 };
  336.         }
  337.  
  338. // -------------------------------------------------------------------------------------------------
  339. //
  340. // Embedding Panels
  341. //
  342. // -------------------------------------------------------------------------------------------------
  343.  
  344.  
  345.     
  346. // ---------------------------------------------------------------------
  347. // HIEmbeddingPanel
  348. // ---------------------------------------------------------------------
  349. DeclareNamedStatement ("HIEmbeddingPanel")
  350.     VList 
  351.     {
  352.     IncludeNamedStatement ("HIPanel");
  353.     
  354.     Margin (5, 5, 5, 5)
  355.         DynamicListMargin ("SubPanels", 
  356.                 HIEmbeddingPanel_subPanels, 
  357.                 Width = UseParent)
  358.             DynamicVList  (HIEmbeddingPanel_subPanels, 
  359.                     HIEmbeddingPanel_subPanel_type,
  360.                     Width = UseParent, 
  361.                     Editable)
  362.                 Margin (2, 2, 2, 2, Dotted, Outer, Width = UseParent)
  363.                     Margin(2,2,2,2)
  364.                         HList ()
  365.                             {
  366.                             StaticText(" Item #");
  367.                             StaticText(ContextElementIndex);
  368.                             EditText (HIEmbeddingPanel_subPanelResID, 
  369.                                 Label = "Resource ID: ");    
  370.                             }
  371.  
  372.     }
  373.  
  374. // ---------------------------------------------------------------------
  375. // HIRootPanel
  376. // ---------------------------------------------------------------------
  377. DeclareNamedStatement ("HIRootPanel")
  378.     IncludeNamedStatement ("HIEmbeddingPanel");
  379.  
  380. // -------------------------------------------------------------------------------------------------
  381. //
  382. // Windows
  383. //
  384. // -------------------------------------------------------------------------------------------------
  385. DeclareNamedStatement ("HIWindow")
  386.     VList
  387.     {
  388.     IncludeNamedStatement ("HIObject");
  389.     
  390.     Margin (5, 5, 5, 5)
  391.         VList 
  392.             {
  393.             IntegerPopup ("Window Class", 100, HIWindow_windowClass_data)
  394.                 {
  395.                 IntItem ("Normal", 2);
  396.                 IntItem ("Floating", 1);
  397.                 IntItem ("Modal", 0);
  398.                 };
  399.             
  400.         Spacer (Height = 5);
  401.         Switch (HIWindow_windowClass_data) 
  402.                 {
  403.                 case 2:
  404.                     IntegerPopup ("Window Variant", 100, HIWindow_windowVariant_data)
  405.                         {
  406.                         IntItem ("Document", 0);
  407.                         IntItem ("Plain Dialog", 2);
  408.                         IntItem ("Shadow Dialog", 3);
  409.                         IntItem ("Borderless Normal", 10);
  410.                         };
  411.                 case 1:
  412.                     IntegerPopup ("Window Variant", 100, HIWindow_windowVariant_data)
  413.                         {
  414.                         IntItem ("Standard Floater", 0);
  415.                         IntItem ("Borderless Floater", 1);
  416.                         IntItem ("Side Floater", 8);
  417.                         };
  418.                 case 0:
  419.                     IntegerPopup ("Window Variant", 100, HIWindow_windowVariant_data)
  420.                         {
  421.                         IntItem ("Modal Dialog", 1);
  422.                         IntItem ("Movable Modal Dialog", 5);
  423.                         IntItem ("Alert", 7);
  424.                         IntItem ("Movable Alert", 9);
  425.                         };
  426.                 }
  427.             
  428.             Label ("Window Options", Single)
  429.                 HList ()
  430.                     {
  431.                     VList ()
  432.                         {    
  433.                         CheckBox ("Has Grow Box", HIWindow_hasGrowBox_data, Width = 170);
  434.                         CheckBox ("Horizontal Zoom Box", HIWindow_hasHorizontalZoom_data, Width = 170);
  435.                         CheckBox ("Vertical Zoom Box", HIWindow_hasVerticalZoom_data, Width = 170);
  436.                         CheckBox ("Has Close Box", HIWindow_hasCloseBox_data, Width = 170);
  437.                         CheckBox ("No Update Events", HIWindow_noUpdateEvents_data, Width = 170);
  438.                         CheckBox ("No ActivateEvents", HIWindow_noActivateEvents_data, Width = 170);
  439.                         CheckBox ("Wants Background Clicks", HIWindow_wantsBackgroundClicks_data, Width = 190);
  440.                         }
  441.                     VList ()
  442.                         {
  443.                         CheckBox ("Right To Left", HIWindow_isRightToLeft_data, Width = 170);
  444.                         CheckBox ("No Process Switch", HIWindow_noProcessSwitch_data, Width = 170);
  445.                         CheckBox ("Does Title Icon Drag", HIWindow_doesTitleIconDrag_data, Width = 170);
  446.                         CheckBox ("Has Collapse", HIWindow_hasCollapse_data, Width = 170);
  447.                         CheckBox ("Do Not Erase Content", HIWindow_doNotEraseContent_data, Width = 170);
  448.                         CheckBox ("Automatic Alignment", HIWindow_automaticAlignment_data, Width = 170);
  449.                         CheckBox ("Quit on Close", HIWindow_quitOnClose_data, Width = 170);
  450.                         }
  451.                     }
  452.             
  453.             Spacer (Height = 5);
  454.             EditText (HIWindow_rootPanelResID_data, Label = "Root Panel Resource ID: ");    
  455.             }
  456.     }
  457.     
  458. // -------------------------------------------------------------------------------------------------
  459. //
  460. // And now for our feature presentation...
  461. //
  462. // -------------------------------------------------------------------------------------------------
  463.  
  464. DeclareNamedStatement ("Panel")
  465.     Margin (5, 5, 5, 5)
  466.     VList ()
  467.         {
  468.             IntegerPopup ("Panel Type", 100, HIObject_classID)
  469.                 {
  470.                 IntItem ("HIPushButton", 1);
  471.                 IntItem ("HICheckbox", 2);
  472.                 IntItem ("HIRadioButton", 3);
  473.                 IntItem ("HIBevelButton", 8);
  474.                 IntItem ("HIDisclosureTriangle", 9);
  475.                 IntItem ("HILittleArrows", 10);
  476.                 IntItem ("HIProgressIndicator", 12);
  477.                 IntItem ("HIScrollbar", 13);
  478.                 IntItem ("HISlider", 7);
  479.                 IntItem ("----", 0);
  480.                 IntItem ("HICaption", 14);
  481.                 IntItem ("HIIcon", 16);
  482.                 IntItem ("HIPicture", 15);
  483.                 IntItem ("HIVisualSeparator", 5);
  484.                 IntItem ("----", 0);
  485.                 IntItem ("HIEmbeddingPanel", 6);
  486.                 IntItem ("HIRootPanel", 18);
  487.                 IntItem ("----", 0);
  488.                 IntItem ("HIWindow", 19);
  489.             };
  490.             
  491.             Switch (HIObject_classID)
  492.                 {
  493.                 case 1:
  494.                      IncludeNamedStatement ("HIPushButton");
  495.                 case 2:
  496.                      IncludeNamedStatement ("HICheckbox");
  497.                 case 3:
  498.                      IncludeNamedStatement ("HIRadioButton");
  499.                 case 5:
  500.                      IncludeNamedStatement ("HIVisualSeparator");
  501.                 case 6:
  502.                      IncludeNamedStatement ("HIEmbeddingPanel");
  503.                 case 7:
  504.                      IncludeNamedStatement ("HISlider");
  505.                 case 8:
  506.                      IncludeNamedStatement ("HIBevelButton");
  507.                 case 9:
  508.                      IncludeNamedStatement ("HIDisclosureTriangle");
  509.                 case 10:
  510.                      IncludeNamedStatement ("HILittleArrows");
  511.                 case 12:
  512.                      IncludeNamedStatement ("HIProgressIndicator");
  513.                 case 13:
  514.                      IncludeNamedStatement ("HIScrollbar");
  515.                 case 14:
  516.                      IncludeNamedStatement ("HICaption");
  517.                 case 15:
  518.                      IncludeNamedStatement ("HIPicture");
  519.                 case 16:
  520.                      IncludeNamedStatement ("HIIcon");
  521.                 case 18:
  522.                      IncludeNamedStatement ("HIRootPanel");
  523.                 case 19:
  524.                      IncludeNamedStatement ("HIWindow");
  525.                 }
  526.         }
  527.  
  528. IncludeNamedStatement ("Panel");
  529.  
  530.